﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Profile.aspx.cs"
    Inherits="Corsat.Web._2013.Profile" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            text-align: center;
        }
        .progressBackgroundFilter
        {
            position: fixed;
            top: 0px;
            bottom: 0px;
            left: 0px;
            right: 0px;
            overflow: hidden;
            padding: 0;
            margin-left: auto;
            margin-right: auto;
            background-color: #000;
            filter: alpha(opacity=50);
            opacity: 0.5;
            z-index: 1000;
        }
        
        .processMessage
        {
            margin-left: auto;
            margin-right: auto;
            position: fixed;
            top: 30%;
            left: 43%;
            padding: 10px;
            width: 14%;
            z-index: 1001;
            background-color: #fff;
            border: solid 1px #000;
            text-align: center;
        }
        
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
        
        .modalPopup
        {
            background-color: #ffffdd;
            border-width: 3px;
            border-style: solid;
            border-color: Gray;
            padding: 3px;
            width: 570px;
        }
        
        .modalPopup p
        {
            padding: 5px;
        }
    </style>
    <script src="http://localhost:1637/Scripts/JScript.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function returnString(x) {
            debugger;
            document.getElementById("HiddenField1").value = x;
            return true;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="Scripts/JScript.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.10.0.min.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script type="text/javascript">
        $(function () {
            $("#dialog-modal").dialog({
                modal: true,
                autoOpen: false,
                height: 300,
                width: 350
            });

            $("#btnTecnology")
                .click(function () {
                    $("#dialog-modal").dialog("open");
                });
        });
    </script>
    <style type="text/css">
        /*.style1
        {
            text-align: center;
        }*/
        .progressBackgroundFilter
        {
            position: fixed;
            top: 0px;
            bottom: 0px;
            left: 0px;
            right: 0px;
            overflow: hidden;
            padding: 0;
            margin-left: auto;
            margin-right: auto;
            background-color: #000;
            filter: alpha(opacity=50);
            opacity: 0.5;
            z-index: 1000;
        }
        
        .processMessage
        {
            margin-left: auto;
            margin-right: auto;
            position: fixed;
            top: 30%;
            left: 43%;
            padding: 10px;
            width: 14%;
            z-index: 1001;
            background-color: #fff;
            border: solid 1px #000;
            text-align: center;
        }
        
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
    </style>
    <asp:ScriptManager ID="formScriptManager" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div dir="rtl">
                <%--<a id="showModalPopupClientButton" href="#" onclick="showModalPopupViaClient(event,'programmaticModalPopupBehavior_AlreadyRegistered')">
            الدخول</a>--%>
                <table style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 15px;">
                    <tr>
                        <td colspan="2">
                            <asp:Panel runat="server" ID="Panel2" GroupingText="البيانات الشخصية" CssClass="techPanel">
                                <table>
                                    <tr>
                                        <td class="label">
                                            الأسم
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblName"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            رقم الكارنية
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblAccountId"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            رقم البطاقة
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblSsn"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            الحى / الإيبارشية
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblDiocese"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            الكنيسة
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblChurch"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Panel runat="server" ID="Panel3" GroupingText="الكورسات والغياب" CssClass="techPanel">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:GridView ID="gvCourses" runat="server" AutoGenerateColumns="false" OnRowDataBound="GvCourses_RowDataBound"
                                                CellPadding="3" CellSpacing="3">
                                                <AlternatingRowStyle HorizontalAlign="Center" />
                                                <Columns>
                                                    <%--<asp:BoundField DataField="FullName" HeaderText="الكورس" />--%>
                                                    <asp:TemplateField HeaderText="الكورس">
                                                        <ItemTemplate>
                                                            <asp:Label runat="server" ID="lblCourseName" Font-Bold="true" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="المستوى">
                                                        <ItemTemplate>
                                                            <asp:Label runat="server" ID="lblCourseLevel" Font-Bold="true" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:CheckBoxField DataField="Att_1" HeaderText="اليوم الأول" />
                                                    <asp:CheckBoxField DataField="Att_2" HeaderText="اليوم الثاني" />
                                                    <asp:CheckBoxField DataField="Att_3" HeaderText="اليوم الثالث" />
                                                    <asp:CheckBoxField DataField="Att_4" HeaderText="اليوم الرابع" />
                                                    <asp:CheckBoxField DataField="Att_5" HeaderText="اليوم الخامس" />
                                                    <asp:CheckBoxField DataField="Att_6" HeaderText="اليوم السادس" />
                                                    <asp:CheckBoxField DataField="Att_7" HeaderText="اليوم السابع" />
                                                    <asp:BoundField DataField="Result" HeaderText="الدرجة" />
                                                    <asp:TemplateField HeaderText="التقدير">
                                                        <ItemTemplate>
                                                            <asp:Label runat="server" ID="lblGrade" Font-Bold="true" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="الأمتحان">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="examLink" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <HeaderStyle HorizontalAlign="Center" />
                                                <RowStyle HorizontalAlign="Center" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Panel runat="server" ID="pnlTechCourseDetails" GroupingText="كورس التكنولوجيا و الخدمة"
                                CssClass="techPanel">
                                <table>
                                    <tr>
                                        <td class="label">
                                            الكورس
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblTechCourseName"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            تاريخ امتحان العملى
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblTechCourseTestDate"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            فترة امتحان العملى
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblTechCourseExamPeriod"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            المعمل
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblTechCourseExamLab"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            تم الحجز فى
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblTechCourseExamResrvationDate"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            الدرجة
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblTechCourseResult"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            التقدير
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblTechCourseGrade"></asp:Label>
                                        </td>
                                    </tr>
                                    <%--                            <tr>
                                <td colspan="4" align="center">
                                    <asp:UpdatePanel ID="upnlAlready" runat="server">
                                        <ContentTemplate>
                                            <asp:Button runat="server" ID="btnHiddenAlreadyRegistered" Style="display: none" />
                                            <ajaxToolkit:ModalPopupExtender runat="server" ID="programmaticModalPopup_AlreadyRegistered"
                                                BehaviorID="programmaticModalPopupBehavior_AlreadyRegistered" TargetControlID="btnHiddenAlreadyRegistered"
                                                PopupControlID="pnlAlreadyRegistered" BackgroundCssClass="modalBackground" DropShadow="True"
                                                PopupDragHandleControlID="programmaticPopupDragHandle_AlreadyRegistered" RepositionMode="RepositionOnWindowScroll">
                                            </ajaxToolkit:ModalPopupExtender>
                                            <asp:Panel ID="pnlAlreadyRegistered" runat="server" CssClass="modalPopup" Style="display: none;">
                                                <asp:Panel runat="Server" ID="programmaticPopupDragHandle_AlreadyRegistered" Style="cursor: move;
                                                    background-color: #DDDDDD; border: solid 1px Gray; color: Black; text-align: center;
                                                    height: 30px; vertical-align: middle;">
                                                    <a id="A2" href="#" onclick="hideModalPopupViaClient(event,'programmaticModalPopupBehavior_AlreadyRegistered')">
                                                        <img src="Images/Action-cancel-icon.png" align="left" alt="إغلاق النافذة" /></a>
                                                    <asp:Label ID="lblModalHeader" runat="server" Style="vertical-align: middle;" Text="الكورسات المتخصصة"
                                                        Font-Size="X-Large" Font-Bold="True"></asp:Label>
                                                </asp:Panel>
                                                <asp:Label ID="Label3" runat="server" Style="font-size: large" Text="من فضلك ادخل البيانات المطلوبة بشكل كامل و صحيح"></asp:Label>
                                                <asp:Label ID="Label1" runat="server" Style="font-size: large" Text="رقمك القومى"></asp:Label>
                                                <br />
                                                <asp:TextBox ID="txtAlreadyRegistered_SSN" runat="server" Width="80%" Style="font-size: x-large;
                                                    text-align: center;" onkeypress="return isNumberKey(event) && ValidateTextLength('txtAlreadyRegistered_SSN',14);" />
                                                <br />
                                                <asp:Label ID="Label2" runat="server" Style="font-size: large" Text="رقمك الكورساتى"></asp:Label>
                                                <br />
                                                <asp:TextBox ID="txtAlreadyRegistered_CorsatId" runat="server" Width="80%" Style="font-size: x-large;
                                                    text-align: center;" onkeypress="return isNumberKey(event) && ValidateTextLength('txtAlreadyRegistered_CorsatId',4);" />
                                                <br />
                                                <asp:LinkButton ID="btnLoadAlreadyRegistered" runat="server" Text="تحميل البيانات"
                                                    OnClick="btnLoadAlreadyRegistered_Click" />
                                            </asp:Panel>
                                        </ContentTemplate>
                                        <Triggers>
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>--%>
                                    <tr>
                                        <td colspan="4">
                                            <asp:Button ID="btnReservePopup" runat="server" Text="احجز الأن" />
                                            <br />
                                            <asp:Panel ID="pnlModal" runat="server" CssClass="modalPopup" Style="display: none;">
                                                <br />
                                                <table dir="rtl">
                                                    <tr>
                                                        <td colspan="3" style="font-weight: bold">
                                                            احجز الأن موعد امتحان التكنولجيا , للحجز أختر الكورس و اليوم و الفترة
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="lblCourse" runat="server" Text="الكورس" />
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlCourseNames" runat="server" OnSelectedIndexChanged="ddlCourseNames_SelectedIndexChanged"
                                                                AutoPostBack="true" />
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblDate" runat="server" Text="التاريخ" />
                                                        </td>
                                                        <td>
                                                            <%-- <asp:Calendar ID="dtpDate" runat="server" OnSelectionChanged="dtpDate_SelectionChanged">
                        <SelectedDayStyle BackColor="#0066FF" Font-Bold="True" ForeColor="White" />
                    </asp:Calendar>--%>
                                                            <asp:DropDownList ID="ddlExamDates" runat="server" OnSelectedIndexChanged="ddlExamDates_SelectedIndexChanged"
                                                                AutoPostBack="true">
                                                                <%--<asp:ListItem Text="" Value="" />
                                <asp:ListItem Text="26 يوليو" Value="7/26/2013" />
                                <asp:ListItem Text="27 يوليو" Value="7/27/2013" />
                                <asp:ListItem Text="28 يوليو" Value="7/28/2013" />
                                <asp:ListItem Text="29 يوليو" Value="7/29/2013" />
                                <asp:ListItem Text="30 يوليو" Value="7/30/2013" />
                                <asp:ListItem Text="31 يوليو" Value="7/31/2013" />
                                <asp:ListItem Text="31 يوليو" Value="7/31/2013" />
                                <asp:ListItem Text="2 أغسطس" Value="8/2/2013" />
                                <asp:ListItem Text="3 أغسطس" Value="8/3/2013" />
                                <asp:ListItem Text="4 أغسطس" Value="8/4/2013" />
                                <asp:ListItem Text="5 أغسطس" Value="8/5/2013" />
                                <asp:ListItem Text="6 أغسطس" Value="8/6/2013" />
                                <asp:ListItem Text="7 أغسطس" Value="8/7/2013" />
                                <asp:ListItem Text="8 أغسطس" Value="8/8/2013" />
                                <asp:ListItem Text="9 أغسطس" Value="8/9/2013" />--%>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <br />
                                                <asp:UpdatePanel ID="upCourseLevels" runat="server">
                                                    <ContentTemplate>
                                                        <table id="table1" runat="server" style="width: 100%;" border="1">
                                                            <tr>
                                                                <td class="style1">
                                                                    &nbsp;
                                                                </td>
                                                                <td class="style1">
                                                                    معمل A
                                                                </td>
                                                                <td class="style1">
                                                                    معمل B
                                                                </td>
                                                                <td class="style1">
                                                                    معمل C
                                                                </td>
                                                                <td class="style1">
                                                                    معمل D
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="style1">
                                                                    الفترة 1
                                                                    <br />
                                                                    من الساعة 10 - 11 ص
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnA1" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('A1');" />
                                                                    <%--showModalPopupViaClient(event,'programmaticModalPopupBehavior_AlreadyRegistered'); " />--%>
                                                                    <br />
                                                                    <asp:Label ID="lblA1State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnB1" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('B1');" />
                                                                    <br />
                                                                    <asp:Label ID="lblB1State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnC1" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('C1');" />
                                                                    <br />
                                                                    <asp:Label ID="lblC1State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnD1" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('D1');" />
                                                                    <br />
                                                                    <asp:Label ID="lblD1State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="style1">
                                                                    الفترة 2
                                                                    <br />
                                                                    من الساعة 11 - 12 ظ
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnA2" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('A2');" />
                                                                    <br />
                                                                    <asp:Label ID="lblA2State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnB2" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('B2');" />
                                                                    <br />
                                                                    <asp:Label ID="lblB2State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnC2" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('C2');" />
                                                                    <br />
                                                                    <asp:Label ID="lblC2State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnD2" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('D2');" />
                                                                    <br />
                                                                    <asp:Label ID="lblD2State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="style1">
                                                                    الفترة 3
                                                                    <br />
                                                                    من الساعة 12 - 1 ظ
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnA3" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('A3');" />
                                                                    <br />
                                                                    <asp:Label ID="lblA3State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnB3" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('B3');" />
                                                                    <br />
                                                                    <asp:Label ID="lblB3State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnC3" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('C3');" />
                                                                    <br />
                                                                    <asp:Label ID="lblC3State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnD3" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('D3');" />
                                                                    <br />
                                                                    <asp:Label ID="lblD3State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="style1">
                                                                    الفترة 4
                                                                    <br />
                                                                    من الساعة 1 - 2 ظ
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnA4" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('A4');" />
                                                                    <br />
                                                                    <asp:Label ID="lblA4State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnB4" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('B4');" />
                                                                    <br />
                                                                    <asp:Label ID="lblB4State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnC4" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('C4');" />
                                                                    <br />
                                                                    <asp:Label ID="lblC4State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnD4" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('D4');" />
                                                                    <br />
                                                                    <asp:Label ID="lblD4State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="style1">
                                                                    الفترة 5
                                                                    <br />
                                                                    من الساعة 2 - 3 ظ
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnA5" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('A5');" />
                                                                    <br />
                                                                    <asp:Label ID="lblA5State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnB5" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('B5');" />
                                                                    <br />
                                                                    <asp:Label ID="lblB5State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnC5" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('C5');" />
                                                                    <br />
                                                                    <asp:Label ID="lblC5State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnD5" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('D5');" />
                                                                    <br />
                                                                    <asp:Label ID="lblD5State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="style1">
                                                                    الفترة 6
                                                                    <br />
                                                                    من الساعة 3 - 4 ظ
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnA6" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('A6');" />
                                                                    <br />
                                                                    <asp:Label ID="lblA6State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnB6" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('B6');" />
                                                                    <br />
                                                                    <asp:Label ID="lblB6State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnC6" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('C6');" />
                                                                    <br />
                                                                    <asp:Label ID="lblC6State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                                <td class="style1">
                                                                    <asp:Button ID="btnD6" runat="server" Text="حجز" OnClick="ReserveCourse" OnClientClick="returnString('D6');" />
                                                                    <br />
                                                                    <asp:Label ID="lblD6State" runat="server" Text="حجز حتى الآن .. 0" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ContentTemplate>
                                                    <Triggers>
                                                        <asp:AsyncPostBackTrigger ControlID="ddlCourseNames" EventName="SelectedIndexChanged" />
                                                        <asp:AsyncPostBackTrigger ControlID="ddlExamDates" EventName="SelectedIndexChanged" />
                                                    </Triggers>
                                                </asp:UpdatePanel>
                                                <br />
                                                <asp:Button ID="btnClose" runat="server" Text="اغلاق النافذه" />
                                            </asp:Panel>
                                            <ajaxToolkit:ModalPopupExtender TargetControlID="btnReservePopup" ID="pnlModal_ModalPopupExtender"
                                                runat="server" DynamicServicePath="" Enabled="True" BackgroundCssClass="modalBackground"
                                                PopupControlID="pnlModal" CancelControlID="btnClose" DropShadow="true">
                                            </ajaxToolkit:ModalPopupExtender>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Panel runat="server" ID="Panel1" GroupingText="المؤتمر" CssClass="techPanel">
                                <table>
                                    <tr>
                                        <td class="label">
                                            الحجز في المؤتمر
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblConferenceStatus"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            حجز المؤتمر في
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblConferenceBookDate"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            أستكمال حجز المؤتمر في
                                        </td>
                                        <td>
                                            <asp:Label runat="server" ID="lblCompeleteConferenceBookDate"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <asp:Button runat="server" ID="hiddenTargetControlForModalPopup" Style="display: none" />
            <ajaxToolkit:ModalPopupExtender runat="server" ID="programmaticModalPopup_RegistrationResult"
                BehaviorID="programmaticModalPopupBehavior_RegistrationResult" PopupControlID="pnlRegistrationResult"
                TargetControlID="hiddenTargetControlForModalPopup" BackgroundCssClass="modalBackground"
                DropShadow="True" PopupDragHandleControlID="programmaticPopupDragHandle_RegistrationResult"
                RepositionMode="RepositionOnWindowScroll">
            </ajaxToolkit:ModalPopupExtender>
            <asp:Panel ID="pnlRegistrationResult" runat="server" CssClass="modalPopup" Style="display: none;">
                <asp:Panel runat="Server" ID="programmaticPopupDragHandle_RegistrationResult" Style="cursor: move;
                    background-color: #DDDDDD; border: solid 1px Gray; color: Black; text-align: center;">
                    <b>الكورسات المتخصصة</b>
                </asp:Panel>
                <br />
                <asp:Label ID="lblAccountNumber" runat="server" Style="font-size: x-large; color: Green;"
                    Text="تم الحجز بنجاح"></asp:Label>
                <br />
                <div dir="rtl">
                    <asp:Label ID="lblMessageData" runat="server" Style="font-size: large;"></asp:Label>
                </div>
                <br />
                <a id="hideModalPopupViaClientButton" href="#" onclick="hideModalPopupViaClient(event,'programmaticModalPopupBehavior_RegistrationResult')"
                    style="font-size: medium;">إغلاق النافذة</a>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
        </Triggers>
    </asp:UpdatePanel>
    <div id="dialog-modal" title="Basic modal dialog">
    </div>
</asp:Content>
